package com.top.jwtdemo.controller;

import com.top.jwtdemo.utils.R;
import com.top.jwtdemo.utils.ResponseEnum;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author  Cjj
 *         2024/6/17 14:15
 *    登录异常
 */
@RestController
@RequestMapping("/error")
public class ErrorController {
   @PostMapping("/token")
   public R<?> token(){
      return R.error(ResponseEnum.NO_TOKEN);
   }

   @PostMapping("/tokenError")
   public R<?> tokenError(){
      return R.error(ResponseEnum.TOKEN_VERIFY_ERROR);
   }

}
